
	<link rel="stylesheet" type="text/css" href="../css/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../css/themes/icon.css">

   <div id="panel-jobpermissionAssign" data-options="border:false">
		
		
	<div class="well well-small" style="margin-left: 5px;margin-top: 5px">
		
		<p>
			<span class="badge">提示</span>
			新增菜单功能不属于当前角色，请在<span class="label-info"><strong>菜单权限分派</strong></span>中为该角色进行资源分派！请<span class="label-info"><strong>双击角色</strong></span>查看所属资源！
			超级管理员默认拥有<span class="label-info"><strong>所有权限！</strong></span>
		</p>
	</div>
	<table cellpadding="2" cellspacing="2" style="width:100%">
		<tr>
			<td style="width:35%">
			
				<div id="tb-jobrolePermission-jobrole" style="padding:2px 0">
					<table cellpadding="0" cellspacing="0" >
						<tr>												
							<td style="padding-left:4px;padding-bottom:4px;">
								<input id="searchbox" type="text"/>
							</td>
							
							<td style="padding-left:4px;padding-bottom:4px;">
								
									<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-config" plain="true"">保存设置</a>
								
									<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-add" plain="true" ">新增</a>
								
									<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-edit" plain="true" ">编辑</a>
								
									<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-remove" plain="true" ">删除</a>
								
							</td>
						</tr>
					</table>
				</div>
				
							
				<table id="dg-jobrolePermission-jobrole" class="easyui-datagrid" title="岗位角色"
					data-options="rownumbers:true,
					animate: true,									
					striped:true,
					border:true,
					singleSelect:true,
					idField: 'id',								
					fitColumns: true,
					toolbar : '#tb-jobrolePermission-jobrole',					
					pagination : true">
					
					<thead>						
						<tr>							
							<th field="jobname" width="100" align="left" halign="center">岗位名称</th>							
							<th field="remarks" width="100" align="left" halign="center">角色描述</th>							
						</tr>
					</thead>
					
					
				</table>
			</td>
			
			<td style="width:64%">
				 
				<table id="dg-jobrolePermission-permission" class="easyui-treegrid" title="角色权限" data-options=
					"toolbar : '#tb-jobrolePermission-permission',
					 rownumbers : true,
					animate : true,
					collapsible : true,
					fitColumns : true,
					border : true,
					striped : true,
					singleSelect : false,
					cascadeCheck : true,
					deepCascadeCheck : true,
					idField : 'id',
					treeField : 'name',
					parentField : 'parentid'
					">
				
					<thead>						
						<tr>
							<th field="ck" checkbox="true" ></td>						
							<th field="name" width="100" align="left" halign="center">资源名称</th>
							<th field="bizcode" width="100" align="left" halign="center">资源编码</th>
							<th field="type" width="40" align="left" halign="center" 
								data-options="formatter : function(value, row) {
									if ('F' == row.type)
										return '<font color=green>菜单<font>';
									else
										return '<font color=red>操作<font>';
								}"
							>资源类型</th>
							<th field="isused" width="40" align="left" halign="center" 
								data-options='formatter : function(value, row) {
									if ("Y" == row.isused)
										return "<font color=green>是<font>";
									else
										return "<font color=red>否<font>";
								}'
							>是否启用</th>	
														
						</tr>
					</thead>
				
				
				</table>
			</td>
		</tr>		
	</div>
</div>
<div id="jobroleEdit-win"></div>
<script>

requirejs(['jobpermissionAssign','domReady!'],function(dept,doc){
	dept.init(doc);
});	

</script>
